<template>
    <div class="main">
        <input type="radio" :name="name" @click="selectRadio(0)" checked />
		<label>是</label>
		<input type="radio" :name="name" @click="selectRadio(1)" />
		<label>否</label>
    </div>
</template>
<script>
export default {
    props: ['name', 'changeWhy'],
    methods: {
        selectRadio: function(value) {
            this.$emit("changeCheck", value, this.changeWhy);
        }
    }
}
</script>
